package com.project.generator.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

import java.util.Date;

/**
 * 关键字枚举类,用于校验是否有 关键字冲突
 * mybatis的OGNL ： bor（字符|）的英文 、xor  字符^的英文、and   字符&&、band 字符&
 * eq  字符== 、neq  字符！=、lt 字符<、gt  字符>、lte 字符<=、gte 字符>=、shl 字符 <<、shr 字符>>、ushr 字符>>>
 *
 * @program: generator
 * @description: 关键字枚举类, 用于校验是否有 关键字冲突
 * @author: zhaoym
 * @create: 2022-08-03 15:13
 */
public enum KeyOgnlEnums {

    BOR("BOR", "|"),
    XOR("XOR", "^"),
    BAND("BAND", "&"),
    EQ("EQ", "=="),
    NEQ("NEQ", "!="),
    LT("LT", "<"),
    GT("GT", ">"),
    LTE("LTE", "<="),
    GTE("GTE", ">="),
    SHL("SHL", "<<"),
    SHR("SHR", ">>"),
    USHR("USHR", ">>>"),
    AND("AND", "&&");

    private final String name;

    private final String code;


    KeyOgnlEnums(String name, String code) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String getCode() {
        return code;
    }


}
